//detail.js
// 获取全局应用程序实例对象
const app = getApp()

Page({
  data: {
    list:[]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options){
    var params = {
      openid: app.globalData.info.openid
    };
    var that = this;
    app.network.POST(
      'https://www.ausck.com/api/recharge_order',
      {
        params: params,
        success: function (res) {
          //拿到解密后的数据，进行代码逻辑
          console.log(res.data.data)
          that.setData({
            list:res.data.data
          })
        },
        fail: function () {
          //失败后的逻辑  
        },
      })
    
  }
  
})
